<template>
  <div class="heroEntry-wrapper">
    <div class="module-heroEntry" :class="{'show':activeIndex}"></div>
    <div class="module-zz"></div>
    <div class="hero-centerbox no-bg layer01">
      <img class="dk-top" src="@/assets/imgs/index/wz_dikuang3.png"/>
      <div class="dk-logo">
        <img src="@/assets/imgs/index/wz_wenzi1.png"/>
      </div>
      <img class="wz2" src="@/assets/imgs/index/wz_wenzi2.png"/>
      <div class="an" @click="clickYy">
        我要预约
      </div>
    </div>
    <div class="container cf">
      <div class="hero-box hb-lf lf">
        <div class="item-hero hero-zhuzai" :class="{'cur':activeIndex == 1}"  @mouseover="mouHover(1)" @mouseleave="mouHoverOver(1)">
          <div class="h-property">
            <b class="tag t01" :class="{'pos-center':activeIndex == null}">剑圣</b>
            <b class="tag t02" :class="{'pos-center':activeIndex == null}">剑刃风暴</b>
            <b class="tag t03" :class="{'pos-center':activeIndex == null}">跳劈</b>
            <i class="i-primarystat attr02" :class="{'pos-center':activeIndex == null}">主宰</i>
            <b class="kw k01 f20" :class="{'pos-center':activeIndex == null}">无敌斩剑圣圣剑斩敌无</b>
            <b class="kw k02 f26" :class="{'pos-center':activeIndex == null}">奶棒人</b>
            <b class="kw k03 f28" :class="{'pos-center':activeIndex == null}">物理核心</b>
          </div>
        </div>
        <div class="item-hero hero-zhaoxilieren" :class="{'cur':activeIndex == 2}"  @mouseover="mouHover(2)" @mouseleave="mouHoverOver(2)">
          <div class="h-property">
            <b class="tag t01" :class="{'pos-center':activeIndex == null}">跳大</b>
            <b class="tag t02" :class="{'pos-center':activeIndex == null}">物理AOE</b>
            <b class="tag t03" :class="{'pos-center':activeIndex == null}">世界名画</b>
            <i class="i-primarystat attr01" :class="{'pos-center':activeIndex == null}">潮汐猎人</i>
            <b class="kw k01 f20" :class="{'pos-center':activeIndex == null}">肉坦</b>
            <b class="kw k02 f24" :class="{'pos-center':activeIndex == null}">海妖外壳</b>
            <b class="kw k03 f28" :class="{'pos-center':activeIndex == null}">团控</b>
            <b class="kw k04 f16" :class="{'pos-center':activeIndex == null}">仰泳</b>
          </div>
        </div>
        <div class="item-hero hero-shenhaifeixia" :class="{'cur':activeIndex == 3}"  @mouseover="mouHover(3)" @mouseleave="mouHoverOver(3)">
          <div class="h-property">
            <b class="tag t01" :class="{'pos-center':activeIndex == null}">话痨</b>
            <b class="tag t02" :class="{'pos-center':activeIndex == null}">能打能控</b>
            <b class="tag t03" :class="{'pos-center':activeIndex == null}">弗兰松鼠</b>
            <i class="i-primarystat attr02" :class="{'pos-center':activeIndex == null}">森海飞霞</i>
            <b class="kw k01 f24" :class="{'pos-center':activeIndex == null}">大头爆栗子</b>
            <b class="kw k02 f26" :class="{'pos-center':activeIndex == null}">一箭穿心</b>
            <b class="kw k03 f28" :class="{'pos-center':activeIndex == null}">灵活走位</b>
          </div>
        </div>
        <div class="item-hero hero-fengxingzhe" :class="{'cur':activeIndex == 4}"  @mouseover="mouHover(4)" @mouseleave="mouHoverOver(4)">
          <div class="h-property">
            <b class="tag t01" :class="{'pos-center':activeIndex == null}">位置灵活</b>
            <b class="tag t02" :class="{'pos-center':activeIndex == null}">单杀</b>
            <b class="tag t03" :class="{'pos-center':activeIndex == null}">物理免疫</b>
            <i class="i-primarystat attr03" :class="{'pos-center':activeIndex == null}">风行者</i>
            <b class="kw k01 f24" :class="{'pos-center':activeIndex == null}">超远距离击杀</b>
            <b class="kw k02 f26" :class="{'pos-center':activeIndex == null}">秀操作</b>
            <b class="kw k03 f28" :class="{'pos-center':activeIndex == null}">集中火力</b>
          </div>
        </div>
      </div>
      <div class="hero-box hb-rt rt">
        <div class="item-hero hero-cow" :class="{'cur':activeIndex == 7}"  @mouseover="mouHover(7)" @mouseleave="mouHoverOver(7)">
          <div class="h-property">
            <b class="tag t01" :class="{'pos-center':activeIndex == null}">团控</b>
            <b class="tag t02" :class="{'pos-center':activeIndex == null}">一刀牛</b>
            <b class="tag t03" :class="{'pos-center':activeIndex == null}">大五个</b>
            <b class="tag t04" :class="{'pos-center':activeIndex == null}">沟壑</b>
            <i class="i-primarystat attr01" :class="{'pos-center':activeIndex == null}">撼地者</i>
            <b class="kw k01 f26" :class="{'pos-center':activeIndex == null}">跳刀</b>
            <b class="kw k02 f26" :class="{'pos-center':activeIndex == null}">游走GANK</b>
            <b class="kw k03 f24" :class="{'pos-center':activeIndex == null}">物理法系爆发兼具</b>
          </div>
        </div>
        <div class="item-hero hero-bingnv" :class="{'cur':activeIndex == 8}"  @mouseover="mouHover(8)" @mouseleave="mouHoverOver(8)">
          <div class="h-property">
            <b class="tag t01" :class="{'pos-center':activeIndex == null}">回蓝光环</b>
            <b class="tag t02" :class="{'pos-center':activeIndex == null}">控制</b>
            <b class="tag t03" :class="{'pos-center':activeIndex == null}">极寒领域</b>
            <i class="i-primarystat attr03" :class="{'pos-center':activeIndex == null}">水晶室女</i>
            <b class="kw k01 f20" :class="{'pos-center':activeIndex == null}">法系</b>
            <b class="kw k02 f26" :class="{'pos-center':activeIndex == null}">冰封禁制</b>
            <b class="kw k03 f24" :class="{'pos-center':activeIndex == null}">远程辅助</b>
          </div>
        </div>
        <div class="item-hero hero-bear" :class="{'cur':activeIndex == 9}"  @mouseover="mouHover(9)" @mouseleave="mouHoverOver(9)">
          <div class="h-property">
            <b class="tag t01" :class="{'pos-center':activeIndex == null}">激怒</b>
            <b class="tag t02" :class="{'pos-center':activeIndex == null}">打野</b>
            <b class="tag t03" :class="{'pos-center':activeIndex == null}">怒意狂击</b>
            <b class="tag t04" :class="{'pos-center':activeIndex == null}">单挑肉山</b>
            <i class="i-primarystat attr02" :class="{'pos-center':activeIndex == null}">熊战士</i>
            <b class="kw k01 f26" :class="{'pos-center':activeIndex == null}">硬</b>
            <b class="kw k02 f26" :class="{'pos-center':activeIndex == null}">10连拍</b>
            <b class="kw k03 f28" :class="{'pos-center':activeIndex == null}">物理大哥</b>
            <b class="kw k04 f28" :class="{'pos-center':activeIndex == null}">集中火力</b>
            <b class="kw k05 f24" :class="{'pos-center':activeIndex == null}">叠加伤害</b>
          </div>
        </div>
        <div class="item-hero hero-shiwen" :class="{'cur':activeIndex == 10}"  @mouseover="mouHover(10)" @mouseleave="mouHoverOver(10)">
          <div class="h-property">
            <b class="tag t01" :class="{'pos-center':activeIndex == null}">打钱</b>
            <b class="tag t02" :class="{'pos-center':activeIndex == null}">物理核心</b>
            <b class="tag t03" :class="{'pos-center':activeIndex == null}">40米大刀</b>
            <i class="i-primarystat attr01" :class="{'pos-center':activeIndex == null}">斯温</i>
            <b class="kw k01 f24" :class="{'pos-center':activeIndex == null}">真男人</b>
            <b class="kw k02 f26" :class="{'pos-center':activeIndex == null}">谢谢你泰罗</b>
            <b class="kw k03 f24" :class="{'pos-center':activeIndex == null}">狂砍一条街</b>
          </div>
        </div>
      </div>
    </div>
  </div>
</template>

<script>
import {mapState} from "vuex";

export default {
  name: 'home',
  data() {
    return {
      activeIndex: null
    };
  },
  created() {
  },
  mounted() {
  },
  computed: {
    ...mapState(["accountInfo"]),
    tabList() {
      return []
    },
  },
  methods: {
    clickYy(){
      this.$router.push({path: '/prizePool'});
    },
    mouHover(index){
      this.activeIndex = null;
      this.activeIndex = index;
    },
    mouHoverOver(){
      this.activeIndex = null;
    },
  },
}
</script>
<style lang="scss" type="text/scss" scoped>
.heroEntry-wrapper {
  width: 100%;
  min-width: 1260px;
  max-width: 1920px;
  height: 100vh;
  padding-top: 0;
  overflow: hidden;
  position: relative;
  background: url("~assets/imgs/index/wz_beijing.jpg") #19191d 50% 0 no-repeat;
  background-color: #1f2126;
  margin: 0 auto;
  .module-heroEntry{
    width: 100%;
    height: 100%;
    transition: all 0.2s ease-in-out;
    position: absolute;
    top: 0;
    right: 0;
    bottom: 30px;
    left: 0;
    background-color: rgba(0, 0, 0, 0);
    z-index: -1;
    display: block;
    pointer-events:none;
  }
  .show{
    z-index: 10;
    background-color: rgba(0, 0, 0, 0.7);
  }
  @keyframes slideJb{
    0% {
      opacity: .5;
    }
    50% {
      opacity: 1;
    }
    100% {
      opacity: .5;
    }
  }

  .module-zz{
    background-image: url('~assets/imgs/index/wz_texiao.png');
    background-size: cover;
    background-position: inherit;
    width: 1920px;
    height: 100vh;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    margin: auto;
    z-index: 5;
    pointer-events:none;
    animation: slideJb 3s linear infinite;
  }

  @keyframes slideIn{
     0% {
       transform: translateY(-100px);
       opacity: 0;
     }

     100% {
       transform: translateY(0px);
       opacity: 1;
     }
  }
  .hero-centerbox{
    background-color: rgba(0, 0, 0, 0);
    z-index: 2;
    background-image: url('~assets/imgs/index/wz_dikuang1.png');
    background-size: cover;
    background-position: center bottom;
    width: 380px;
    height: 100vh;
    margin:auto;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    animation-duration: .6s;
    animation-timing-function: ease-out;
    animation-iteration-count: 1;
    animation-name: slideIn;
    .dk-top{
      width: 246px;
      height: 170px;
      display: block;
      position: absolute;
      left: 0;
      right: 0;
      margin:auto;
      z-index: 1;
    }
    .dk-logo{
      background-image: url('~assets/imgs/index/wz_dikuang2.png');
      position: absolute;
      left: 0;
      right: 0;
      margin:auto;
      width: 350px;
      height: 350px;
      top: 70px;
      background-size: 100%;
      img{
        width: 220px;
        display: block;
        position: absolute;
        left: 0;
        right: 0;
        top: 0;
        bottom: 0;
        margin:auto;
      }
    }
    .wz2{
      position: absolute;
      left: 50%;
      margin-left: -28px;
      top: 430px;
      width: 50px;
    }
    .an{
      background-image: url('~assets/imgs/index/wz_anniu.png');
      position: absolute;
      left: 0;
      right: 0;
      margin: auto;
      width: 300px;
      height: 88px;
      bottom: 15vh;
      background-size: 100%;
      color: #9A5B2E;
      font-size: 26px;
      z-index: 10;
      display: flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
    }
  }


  @keyframes fadeInLeft{
    0% {
      opacity: 0;
      transform: translate3d(-100%, 0, 0);
    }

    100% {
      opacity: 1;
      transform: translateZ(0);
    }
  }
  @keyframes fadeInRight{
    0% {
      opacity: 0;
      transform: translate3d(100%, 0, 0);
    }

    100% {
      opacity: 1;
      transform: translateZ(0);
    }
  }
  .container{
    position: relative;
    margin: 0 auto;
    width: 1365px;
    height: 100%;
    .hero-box{
      width: 50%;
      height: 100%;
      position: relative;
      animation-duration: .5s;
      animation-timing-function: ease-out;
      animation-iteration-count: 1;
    }
    .hb-lf{
      animation-name: fadeInLeft;
    }
    .hb-rt{
      animation-name: fadeInRight;
    }
  }
  .h-property{
    position: absolute;
    top: 100px;
    width: 300px;
    opacity: 0;
    transition: all 0.25s ease-in-out;
    b, i{
      transition: all 0.2s ease-in-out;
      white-space: nowrap;
    }
    .pos-center, .pos-center::after{
      opacity: 0;
      position: absolute;
      top: 38px !important;
      left: 42% !important;
      transform: translate(-50%, -50%) !important;
    }
    .tag {
      font-size: 16px;
      background-color: rgba(255, 255, 255, 0.7);
      border-radius: 16px;
      color: #000;
      padding: 1px 16px;
      position: absolute;
      font-weight: 700;
    }
    .i-primarystat{
      padding-left: 55px;
      padding-bottom: 4px;
      font-size: 36px;
      font-weight: 700;
      position: absolute;
      top: -80px;
      left: -95px;
      color: #fff;
      &:after{
        width: 52px;
        height: 52px;
        content: '';
        background-repeat: no-repeat;
        background-image: url("~assets/imgs/ty/tg.png");
        position: absolute;
        top: 0;
        left: 0;
        display: block;
        background-size: contain;
      }
    }
    .kw{
      color: #fff;
      font-size: 20px;
      position: absolute;
    }
  }
  .item-hero{
    transition: all 0.25s ease-in-out;
    cursor: pointer;
    position: absolute;
    .i-primarystat{
      top: -90px;
      left: -125px;
    }
    .kw.k01 {
      left: -135px;
      top: 15px;
    }
    .kw.k02 {
      right: -30px;
      top: 35px;
    }
    .kw.k03 {
      left: 45px;
      top: 135px;
    }
    .kw.k04 {
      left: 25px;
      top: 15px;
    }
    .tag.t01 {
      left: 200px;
      top: -55px;
    }
    .tag.t02 {
      left: 180px;
      top: 115px;
    }
    .tag.t03 {
      left: -55px;
      top: 90px;
    }
  }
  .item-hero.cur{
    opacity: 1;
    filter: saturate(1.1) brightness(1.1);
    transform: translateY(-5px);
    z-index: 20;
    .h-property{
      opacity: 1;
    }
  }
  .hero-zhuzai{
    top: 0;
    left: -260px;
    background-image: url('~assets/imgs/index/wz_renwu6.png');
    width: 489px;
    height: 821px;
    z-index: 1;
    .h-property{
      left: 100px;
      top: 170px;
    }
    //.i-primarystat{
    //  top: -90px;
    //  left: -125px;
    //}
    //.kw.k01 {
    //  left: -135px;
    //  top: 15px;
    //}
    //.kw.k02 {
    //  right: -30px;
    //  top: 35px;
    //}
    //.kw.k03 {
    //  left: 45px;
    //  top: 135px;
    //}
    //.kw.k04 {
    //  left: 25px;
    //  top: 15px;
    //}
    //.tag.t01 {
    //  left: 200px;
    //  top: -55px;
    //}
    //.tag.t02 {
    //  left: 180px;
    //  top: 115px;
    //}
    //.tag.t03 {
    //  left: -55px;
    //  top: 90px;
    //}
  }
  .hero-zhaoxilieren{
    z-index: 2;
    top: 50px;
    right: 129px;
    width: 459px;
    height: 533px;
    background-image: url('~assets/imgs/index/wz_renwu7.png');
    .h-property{
      left: 175px;
      top: 170px;
    }
    //.i-primarystat{
    //  top: -120px;
    //  left: -135px;
    //}
    //.kw.k01 {
    //  left: -135px;
    //  top: -25px;
    //}
    //.kw.k02 {
    //  right: -80px;
    //  top: -25px;
    //}
    //.kw.k03 {
    //  left: 45px;
    //  top: 135px;
    //}
    //.kw.k04 {
    //  left: 25px;
    //  top: -40px;
    //}
    //.tag.t01 {
    //  left: 210px;
    //  top: -75px;
    //}
    //.tag.t02 {
    //  left: 300px;
    //  top: 75px;
    //}
    //.tag.t03 {
    //  left: -55px;
    //  top: 90px;
    //}
  }
  .hero-shenhaifeixia{
    z-index: 3;
    top: 300px;
    left: -340px;
    width: 679px;
    height: 1117px;
    background-image: url('~assets/imgs/index/wz_renwu5.png');
    .h-property{
      left: 200px;
      top: 170px;
    }
    //.i-primarystat{
    //  top: -110px;
    //  left: -145px;
    //}
    //.kw.k01 {
    //  left: 150px;
    //  top: -45px;
    //}
    //.kw.k02 {
    //  right: 58px;
    //  top: 175px;
    //}
    //.kw.k03 {
    //  left: -175px;
    //  top: 75px;
    //}
    //.kw.k04 {
    //  left: 25px;
    //  top: 15px;
    //}
    //.tag.t01 {
    //  left: -100px;
    //  top: 12px;
    //}
    //.tag.t02 {
    //  left: 200px;
    //  top: 115px;
    //}
    //.tag.t03 {
    //  left: -25px;
    //  top: 150px;
    //}
  }
  .hero-fengxingzhe{
    z-index: 3;
    top: 420px;
    right: 70px;
    width: 700px;
    height: 900px;
    background-size: 100%;
    background-image: url('~assets/imgs/index/wz_renwu1.png');
    .h-property{
      left: 460px;
      top: 170px;
    }
    //.i-primarystat{
    //  top: -200px;
    //  left: -40px;
    //}
    //.kw.k01 {
    //  left: 275px;
    //  top: -85px;
    //}
    //.kw.k02 {
    //  left: 198px;
    //  top: 65px;
    //}
    //.kw.k03 {
    //  left: -85px;
    //  top: 6px;
    //}
    //.kw.k04 {
    //  left: 165px;
    //  top: 15px;
    //}
    //.tag.t01 {
    //  left: 220px;
    //  top: -145px;
    //}
    //.tag.t02 {
    //  left: 260px;
    //  top: -25px;
    //}
    //.tag.t03 {
    //  left: 75px;
    //  top: 100px;
    //}
  }



  .hero-shiwen{
    z-index: 1;
    width: 411px;
    height: 496px;
    left: 115px;
    top: 80px;
    background-image: url('~assets/imgs/index/wz_renwu8.png');
    .h-property{
      right: 112px;
      top: 165px;
    }
    .i-primarystat{
      left: -150px;
      top: -52px;
    }
    .kw.k01 {
      right: 90px;
      top: -55px;
      left: inherit;
    }
    .kw.k02 {
      right: -130px;
      top: 61px;
    }
    .kw.k03 {
      left: -70px;
      top: 115px;
    }
    .kw.k04 {
      left: -65px;
      top: 75px;
    }
    .kw.k05 {
      left: -195px;
      top: -105px;
    }
    .tag.t01 {
      left: 305px;
      top: 5px;
    }
    .tag.t02 {
      left: 158px;
      top: 141px;
    }
    .tag.t03 {
      left: -155px;
      top: 52px;
    }
    .tag.t04 {
      left: -175px;
      top: 21px;
    }
  }
  .hero-bear{
    z-index: 2;
    width: 402px;
    height: 584px;
    top: 0;
    right: -210px;
    background-image: url('~assets/imgs/index/wz_renwu4.png');
    .h-property{
      right: 168px;
      top: 215px;
    }
    .i-primarystat{
      left: -205px;
      top: -215px;
    }
    .kw.k01 {
      right: 220px;
      top: -185px;
      left: inherit;
    }
    .kw.k02 {
      right: -10px;
      top: -125px;
    }
    .kw.k03 {
      right: -20px;
      top: 75px;
      left: inherit;
    }
    .kw.k04 {
      left: -65px;
      top: 75px;
    }
    .kw.k05 {
      left: -195px;
      top: -105px;
    }
    .tag.t01 {
      left: 245px;
      top: -205px;
    }
    .tag.t02 {
      left: 290px;
      top: -60px;
    }
    .tag.t03 {
      left: 145px;
      top: 132px;
    }
    .tag.t04 {
      left: -175px;
      top: 21px;
    }
  }
  .hero-bingnv{
    z-index: 3;
    width: 839px;
    height: 1213px;
    top: 220px;
    right: -280px;
    background-image: url('~assets/imgs/index/wz_renwu3.png');
    .h-property{
      right: 16px;
      top: 215px;
    }
    .i-primarystat{
      left: -25px;
      top: -225px;
    }
    .kw.k01 {
      right: 0;
      top: -35px;
      left: inherit;
    }
    .kw.k02 {
      right: 110px;
      top: 125px;
    }
    .kw.k03 {
      left: -50px;
      top: -65px;
    }
    .kw.k04 {
      left: -25px;
      top: 65px;
    }
    .tag.t01 {
      left: 200px;
      top: -125px;
    }
    .tag.t02 {
      left: 230px;
      top: 85px;
    }
    .tag.t03 {
      left: -55px;
      top: 110px;
    }
    .tag.t04 {
      left: -105px;
      top: -29px;
    }
  }
  .hero-cow{
    z-index: 4;
    width: 617px;
    height: 827px;
    top: 300px;
    left:60px;
    background-image: url('~assets/imgs/index/wz_renwu2.png');
    .h-property{
      right: 210px;
      top: 265px;
    }
    .i-primarystat{
      left: -125px;
      top: -155px;
    }
    .kw.k01 {
      right: 0;
      top: -35px;
      left: inherit;
    }
    .kw.k02 {
      right: 110px;
      top: 125px;
    }
    .kw.k03 {
      left: -130px;
      top: 25px;
    }
    .kw.k04 {
      left: -25px;
      top: 65px;
    }
    .tag.t01 {
      left: 90px;
      top: -105px;
    }
    .tag.t02 {
      left: 240px;
      top: 85px;
    }
    .tag.t03 {
      left: -55px;
      top: 110px;
    }
    .tag.t04 {
      left: -105px;
      top: -29px;
    }
  }
}
</style>
